t = (i for i in range(1, 4))

print(t)

print(t.__next__())
print(t.__next__())
print(t.__next__())

t = tuple(t)
print(t)

print("-"*40)

t2 = (i for i in range(1, 4)) #t2是生成器
print(t2)
t2 = tuple(t2) # t2是元组了
print(t2)
for item in t2:
    print(item)
